using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using ServiceStack.DataAnnotations;

namespace MMM.Services.Type
{
    /// <summary>
    /// 社保基数管理
    /// </summary>
    [Serializable]
    [Route("/api/socialinsurance", "POST,PUT")]
    [Route("/api/socialinsuranceQ", "GET")]
    public class SocialInsurance : EntityBase<SocialInsurance>
    {
        /// <summary>
        /// 公司Id
        /// </summary>
        [StringLength(50)]
        [Required]
        public String CompanyId { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [StringLength(50)]
        [Required]
        [Index]
        public String CompanyName { get; set; }
        /// <summary>
        /// 社保名称
        /// </summary>
        [StringLength(50)]
        [Required]
        [Index]
        public String Name { get; set; }
        /// <summary>
        /// 企业基数
        /// </summary>
        [Required]
        public double CompanyBase { get; set; }
        /// <summary>
        /// 企业比例
        /// </summary>
        [Required]
        public double CompanyRatio { get; set; }
        /// <summary>
        /// 企业附加金额
        /// </summary>
        public double CompanyPlus { get; set; }
        /// <summary>
        /// 个人基数
        /// </summary>
        [Required]
        public double PersonalBase { get; set; }
        /// <summary>
        /// 是否固定
        /// </summary>
        [Required]
        public bool IsFixed { get; set; }
        /// <summary>
        /// 个人比例
        /// </summary>
        [Required]
        public double PersonalRatio { get; set; }
        /// <summary>
        /// 个人附加金额
        /// </summary>
        public double PersonalPlus { get; set; }

    }
}
